import axios from 'axios'

axios.defaults.baseURL = '/apis'

//请求拦截器

//相应拦截器

axios.interceptors.response.use(
  (response) => {
    return response
  },
  (error) => {
    // console.dir(error)
    return Promise.reject(error)
  }
)

export default axios
